package top.chenfu.mq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @Author: romantic_ke@163.com
 * @Description: 消息生产者
 * @Date: 2019/8/11 20:44
 */
@SpringBootConfiguration
public class QueueConfig {

    /**
     * 创建队列
     * @return
     */
    @Bean
    public Queue createQueue(){
        return new Queue("hello-queue");
    }
}
